#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int arr[10] = { 1,8,6,-5,7,9,15,10,0,5 };
	int i = 0;
	int max = arr[i];
	for (i = 1; i < 10; i++)
	{
		if (max > arr[i])
		{
			max = max;
		}
		else
		{
			max = arr[i];
		}
	}
	printf("%d", max);
	return 0;
}